/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package oop;

/**
 *
 * @author azouz
 */
public class Test {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
//        vechile v = new car();
//        exCar c = new exCar();
//        v = c;
//        c.out();
//        v.out();
        Thread ww = new Thread(new aybt3());
        ww.start();
        ww.start();
        Thread at = new aybt3a();
        at.start();
        float f6 = 2.81F;
        int result = 0;

        Thread t = new MyThread() {
            public void run() {
                System.out.println(" foo");
            }
        };
        t.start();
        Boolean b1 = new Boolean("TRUE");
        Boolean b2 = new Boolean("true");
        Boolean b3 = new Boolean("tRuE");
        Boolean b4 = new Boolean("false");

        if (b1 == b2) /* Line 10 */ {
            result = 1;
        }
        if (b1.equals(b2)) /* Line 12 */ {
            result = result + 10;
        }

        if (b2.equals(b3)) /* Line 18 */ {
            result = result + 10000;
        }

        System.out.println("result = " + result);
        int I = 0;
        outer:
        while (true) {
            I++;

            inner:
            for (int j = 0; j < 10; j++) {
                I += j;
                if (j == 3) {
                    continue inner;
                }
                break outer;
            }
            continue outer;
        }
        System.out.println(I);
        System.out.print(" hello" + 7 + 2 + " ");

    }

}

interface vechile {

    void out();

}

class car implements vechile {

    public void out() {
        System.out.println("Car");
    }
}

class exCar extends car {

    public void out() {
        System.out.println("EXCAR");
    }
}

class aybt3 implements Runnable {

    public void run() {
        System.out.println("aybt3 RUN");
    }

    public void start() {
        System.out.println("HHHH");
    }

}

class aybt3a extends Thread {

    @Override
    public void run() {
        System.out.println("aybt3aa RUN");
    }

    @Override
    public void start() {
        System.out.println("START");
    }

    public void run(String s) {
        System.out.println(" baz");
    }
}

class MyThread extends Thread {

    MyThread() {
        System.out.print(" MyThread");
    }

    public void run(String s) {
        System.out.println(" baz");
    }
}

class Foo {

    class Bar {
    }
}

class aa {

    public static void main(String[] args) {
        Foo f = new Foo();
        assert (args.length > 0) : "assertion passed";
          float x = 10;


        Foo.Bar bas = f.new Bar();


        /* Line 10: Missing statement ? */
    }
}
